package com.atguigu.ssyx.client.search;

import com.atguigu.ssyx.common.result.Result;
import com.atguigu.ssyx.model.product.Category;
import com.atguigu.ssyx.model.product.SkuInfo;
import com.atguigu.ssyx.model.search.SkuEs;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(value = "service-search")
public interface SearchFeignClient {
    @GetMapping("api/search/sku/inner/findHotSkuList")
    List<SkuEs> findHotSkuList();

    /**
     * 更新商品incrHotScore
     * @param skuId
     * @return
     */
    @GetMapping("/api/search/sku/inner/incrHotScore/{skuId}")
    Boolean incrHotScore(@PathVariable("skuId") Long skuId);

    @GetMapping("api/search/sku/inner/upperSku/{skuId}")
    Result upperGoods(@PathVariable("skuId") Long skuId);


    @GetMapping("api/search/sku/inner/lowerSku/{skuId}")
    Result lowerGoods(@PathVariable("skuId") Long skuId);

}